import request from '@/utils/request'

// 查询停车卡列表
export function listParkingCard(query) {
  return request({
    url: '/parking/parkingCard/list',
    method: 'get',
    params: query
  })
}

// 查询停车卡详细
export function getParkingCard(id) {
  return request({
    url: '/parking/parkingCard/' + id,
    method: 'get'
  })
}

// 新增停车卡
export function addParkingCard(data) {
  return request({
    url: '/parking/parkingCard',
    method: 'post',
    data: data
  })
}

// 修改停车卡
export function updateParkingCard(data) {
  return request({
    url: '/parking/parkingCard',
    method: 'put',
    data: data
  })
}

// 删除停车卡
export function delParkingCard(id) {
  return request({
    url: '/parking/parkingCard/' + id,
    method: 'delete'
  })
}
